import java.sql.DriverManager;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2025-01-03
 * Time: 15:40
 */
public class Main {
    public static void main(String[] args) throws Exception {
        //1.注册驱动
        Class.forName("com.mysql.jdbc.Driver");

        //2.获取链接
        String url = "jdbc:mysql://127.0.01::3306/htz";
        String username = "root";
        String password = "123456";

        DriverManager.getConnection(url,username,password);
        
    }
}
